#include "mycoin.h"
#include <QDebug>
//MyCoin::MyCoin(QWidget *parent) :
//    QWidget(parent)
//{
//}

MyCoin::MyCoin(QString btnImg){
    QPixmap pix;
    bool res = pix.load(btnImg);
    if(!res){
        QString str = QString("图片 %1 加载失败").arg(btnImg);
        qDebug() << str;
        return;
    }
    this->setFixedSize(pix.width()*1.4, pix.height()*1.4);

    this->setStyleSheet("QPushButton{border:0px;}");
    this->setIcon(pix);
    this->setIconSize(QSize(pix.width(), pix.height()));
